wayland: Remove unused stuff
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 15 May 2014 22:11:20 +0000 (18:11 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Fri, 16 May 2014 19:24:37 +0000 (15:24 -0400)
gdk/wayland/gdkcursor-wayland.c
gdk/wayland/gdkdisplay-wayland.h
gdk/wayland/gdkwindow-wayland.c

index 677f500bc2a6ca21a9f7f05daabb7525caf5ba57..5d92732783908f3457664b2497443e0fc3424bc9 100644 (file)
@@ -50,7 +50,6 @@ struct _GdkWaylandCursor
 {
   GdkCursor cursor;
   gchar *name;
-  guint serial;
 
   struct
   {
@@ -69,8 +68,6 @@ struct _GdkWaylandCursorClass
 
 G_DEFINE_TYPE (GdkWaylandCursor, _gdk_wayland_cursor, GDK_TYPE_CURSOR)
 
-static guint theme_serial = 0;
-
 struct cursor_cache_key
 {
   GdkCursorType type;
@@ -319,7 +316,6 @@ _gdk_wayland_display_get_cursor_for_name (GdkDisplay  *display,
                           "display", display,
                           NULL);
   private->name = g_strdup (name);
-  private->serial = theme_serial;
   private->surface.scale = 1;
 
   /* Blank cursor case */
@@ -349,7 +345,6 @@ _gdk_wayland_display_get_cursor_for_surface (GdkDisplay *display,
                         "display", wayland_display,
                         NULL);
   cursor->name = NULL;
-  cursor->serial = theme_serial;
   cursor->surface.hotspot_x = x;
   cursor->surface.hotspot_y = y;
 
index a68753c754d3e87b3cdae0e7fbd6119965c7bb23..077248abc643f186affd68410d7479a566e85384 100644 (file)
@@ -50,8 +50,7 @@ struct _GdkWaylandDisplay
   /* Startup notification */
   gchar *startup_notification_id;
 
-  /* Time of most recent user interaction and most recent serial */
-  gulong user_time;
+  /* Most recent serial */
   guint32 serial;
 
   /* Wayland fields below */
index cf1f02d27176242e5562b291ab6a676e56695383..7f67e1be8561511484beb652d8a4ebcf978eba8f 100644 (file)
@@ -94,8 +94,6 @@ struct _GdkWindowImplWayland
 
   GdkWindow *wrapper;
 
-  GdkCursor *cursor;
-
   /* The wl_outputs that this window currently touches */
   GSList *outputs;
 
@@ -115,9 +113,6 @@ struct _GdkWindowImplWayland
 
   gchar *title;
 
-  /* Time of most recent user interaction. */
-  gulong user_time;
-
   GdkGeometry geometry_hints;
   GdkWindowHints geometry_mask;
 
@@ -593,9 +588,6 @@ gdk_window_impl_wayland_finalize (GObject *object)
 
   impl = GDK_WINDOW_IMPL_WAYLAND (object);
 
-  if (impl->cursor)
-    g_object_unref (impl->cursor);
-
   g_free (impl->title);
 
   g_clear_pointer (&impl->opaque_region, cairo_region_destroy);
@@ -631,12 +623,6 @@ gdk_wayland_window_configure (GdkWindow *window,
   _gdk_wayland_display_deliver_event (display, event);
 }
 
-static void
-gdk_wayland_window_set_user_time (GdkWindow *window,
-                                  guint32    user_time)
-{
-}
-
 static void
 gdk_wayland_window_sync_parent (GdkWindow *window)
 {
@@ -1081,18 +1067,8 @@ static void
 gdk_wayland_window_show (GdkWindow *window,
                          gboolean   already_mapped)
 {
-  GdkDisplay *display;
-  GdkWaylandDisplay *display_wayland;
   GdkWindowImplWayland *impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
 
-  display = gdk_window_get_display (window);
-  display_wayland = GDK_WAYLAND_DISPLAY (display);
-
-  if (impl->user_time != 0 &&
-      display_wayland->user_time != 0 &&
-      XSERVER_TIME_IS_LATER (display_wayland->user_time, impl->user_time))
-    gdk_wayland_window_set_user_time (window, impl->user_time);
-
   if (!impl->surface)
     gdk_wayland_window_create_surface (window);
 
@@ -1548,17 +1524,6 @@ static void
 gdk_wayland_window_set_focus_on_map (GdkWindow *window,
                                      gboolean focus_on_map)
 {
-  focus_on_map = focus_on_map != FALSE;
-
-  if (window->focus_on_map != focus_on_map)
-    {
-      window->focus_on_map = focus_on_map;
-
-      if ((!GDK_WINDOW_DESTROYED (window)) &&
-          (!window->focus_on_map) &&
-          WINDOW_IS_TOPLEVEL_OR_FOREIGN (window))
-        gdk_wayland_window_set_user_time (window, 0);
-    }
 }
 
 static void